<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../../../练习/字体图标/icon/iconfont.css">
    <style>
        body {
            margin: 0;
            width: 100%;
            display: flex;
        }

        .icon {
            color: blue;
            margin: 8px;
        }

        .line {
            flex: 1;
            height: 2px;
            background-color: blue;
            margin: 8px;
        }

        /* 前三个 */
        .step:nth-child(-n+3) {
            /* 当儿子需要做的 */
            flex: 1;
        }

        .step {
            /* 当爹应该做的 */
            display: flex;
            align-items: center;
        }

        .step:nth-child(3) .icon {
            animation: loading 1s linear infinite;
        }

        @keyframes loading {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .step:nth-last-child(2) .line {
            background-color: #aaa;
        }

        .step:last-child * {
            color: #aaa;
        }

    </style>
</head>
<body>
    <div class="step">
        <i class="icon iconfont icon-loading"></i>
        <span>Login</span>
        <div class="line"></div>
    </div>
    <div class="step">
        <i class="icon iconfont icon-loading"></i>
        <span>Verification1111111111</span>
        <div class="line"></div>
    </div>
    <div class="step">
        <i class="icon iconfont icon-loading"></i>
        <span>Pay</span>
        <div class="line"></div>
    </div>
    <div class="step">
        <i class="icon icon-disable iconfont icon-loading"></i>
        <span>Done</span>
    </div>
</body>
</html>